<script setup lang="ts">
    import {ref} from 'vue';
    // import Info from './info.vue';
    import InfoTs from './info-ts.vue';

    let count = ref(1)

    const parentClick = (num: number) => {
        count.value += num;
    }

    const parentChange = () => {
        alert('子组件触发了父组件的parentChange')
    }

</script>

<template>
    <div>{{count}}</div>
    <!-- <Info @parentChange="parentChange" @parentClick="parentClick"/> -->
    <InfoTs @parentChange="parentChange" @parentClick="parentClick"/>
</template>

<style scoped lang="scss">

</style>